package com.jiaai.shop.store.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 会员表
 * </p>
 *
 * @author
 * @since 2018-04-01
 */
@TableName("s_member")
public class SMember extends Model<SMember> {

    private static final long serialVersionUID = 1L;

	@TableId(value="memberId", type= IdType.INPUT)
    /**
     * 用户id
     */
	private String memberId;

	/**
	 * 昵称
	 */
	private String nickName;
    /**
     * 用户密码
     */
	private String memberPass;
    /**
     * 用户名
     */
	private String memberName;
    /**
     * 当前剩下的积分
     */
	private int score;
    /**
     * 状态（0，未购买，1，已购买)
     */
	private Integer state;
    /**
     * 邀请人
     */
	private String invitationPer;
    /**
     * 总积分
     */
	@TableField("total_score")
	private Integer totalScore;

	private Integer consume;
    /**
     * 创建时间
     */
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
	private Date time;

	private int lv;

	/**
	 * 用户状态：0表示游客；1表示会员，已购买过商品
	 */
	private  Integer type;

	/**
	 *已邀请人数量
	 */
	private Integer inviterNumber;

	/**
	 *可提现积分
	 */
	private  Integer presentScore;

	/**
	 * 支付宝账号
	 */
    private  String alipayl;

	public String getAlipayl() {
		return alipayl;
	}

	public void setAlipayl(String alipayl) {
		this.alipayl = alipayl;
	}

	public Integer getPresentScore() {
		return presentScore;
	}

	public void setPresentScore(Integer presentScore) {
		this.presentScore = presentScore;
	}

	public Integer getInviterNumber() {return inviterNumber;}

	public void setInviterNumber(Integer inviterNumber) {this.inviterNumber = inviterNumber;}

	public Integer getType(){ return type; }

    public void setType(Integer type) {this.type = type;}

	public int getLv() {
		return lv;
	}

	public void setLv(int lv) {
		this.lv = lv;
	}

	public static long getSerialVersionUID() {
		return serialVersionUID;
	}

	public String getMemberId() {
		return memberId;
	}

	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}

	public void setScore(int score) {
		this.score = score;
	}

	public String getMemberPass() {
		return memberPass;
	}

	public void setMemberPass(String memberPass) {
		this.memberPass = memberPass;
	}

	public String getMemberName() {
		return memberName;
	}

	public void setMemberName(String memberName) {
		this.memberName = memberName;
	}

	public int getScore() {
		return score;
	}

	public void setScore(Integer score) {
		this.score = score;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public String getInvitationPer() {
		return invitationPer;
	}

	public void setInvitationPer(String invitationPer) {
		this.invitationPer = invitationPer;
	}

	public Integer getTotalScore() {
		return totalScore;
	}

	public void setTotalScore(Integer totalScore) {
		this.totalScore = totalScore;
	}

	public Date getTime() {
		return time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public Integer getConsume() {
		return consume;
	}

	public void setConsume(Integer consume) {
		this.consume = consume;
	}

	@Override
	protected Serializable pkVal() {
		return this.memberId;
	}

}
